package com.formiaomiao.demain.controller;

import com.formiaomiao.demain.model.UserBean;
import com.formiaomiao.demain.service.ThemeService;
import com.formiaomiao.demain.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/theme")
public class ThemeController {
    @Autowired
    private ThemeService themeService;

    /**
     * 获取主题列表
     * @return
     */
    @ResponseBody
    @RequestMapping("/selecttheme")
    public Object SignInUser(){
        return themeService.selectTheme();
    }
}
